package com.example.dayu521.msg_receive.controller;

import com.example.dayu521.msg_receive.service.feign.MsgSenderHello;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
@Slf4j
public class TestFC {

    @Autowired
    private MsgSenderHello msgSenderHello;

    @PostMapping("/hello")
    public String hello() {
        log.info("ck you bab");
        var r=msgSenderHello.hello();
        return "fuck you baby ==>>"+r;
    }


}
